<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    /*var a,b,c;
    a=b=c=[1,2];
    b=[3,4];
    c.length=1;
    console.log(a);*/
   /* function  Animal(name) {
        this.name = name;
    }
    Animal.prototype = {
        getName:function () {
            return this.name;
        }
    }
    var myDog = new  Animal('dog');
    var getName = myDog.getName;
    getName('cat')*/
   const  a= [];
   for (let  i = 0;i<10;i++){
       a[i] = function () {
        console.log(i);
       };
   }
   a[1]();
</script>
</html>